#include	"ZoneConnector.h"
#include	"CenterService.h"
#include	<protocols/Common.pb.h>

void ZoneConnector::OnReceive(Protocol * msg) {
	switch (msg->pf) {
	case Proto::RSP_ACTIVEACCOUNT: GService.AfterZone_Active(msg); break;
	case Proto::RSP_CREATEROLE: GService.AfterZone_Create(msg); break;
	case Proto::RSP_RENAME: GService.AfterZone_Rename(msg); break;
	default:
		LOG_ERR("[zone]Received unspported message. PF : %d", (int)msg->pf);
		break;
	}
}